import request from '@/utils/request'

// 查询喊话器型号信息列表
export function listModel(query) {
    return request({
        url: '/equipment/model/list',
        method: 'get',
        params: query
    })
}

// 查询喊话器型号信息详细
export function getModel(modelId) {
    return request({
        url: '/equipment/model/' + modelId,
        method: 'get'
    })
}

// 新增喊话器型号信息
export function addModel(data) {
    return request({
        url: '/equipment/model',
        method: 'post',
        data: data
    })
}

// 修改喊话器型号信息
export function updateModel(data) {
    return request({
        url: '/equipment/model',
        method: 'put',
        data: data
    })
}

// 删除喊话器型号信息
export function delModel(modelId) {
    return request({
        url: '/equipment/model/' + modelId,
        method: 'delete'
    })
}
